// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
  --el-dialog-padding-primary: 0!important;
  border-radius: $--base-dialog-radius;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: var(--el-dialog-width);
  min-height: 180px;
  max-height: calc(92vh);
  min-width: 310px;
  max-width: calc(100vw - 4vw);
  .el-dialog__header {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px;
    background-color: $--base-dialog-header-bgColor;
    .el-dialog__title {
      color: $--base-dialog-header-color;
    }
    .avue-crud__dialog__menu {
      right: 50px;
      i {
        color: $--base-dialog-header-color;
      }
    }
    .el-dialog__headerbtn {
      .el-dialog__close {
        color: $--base-dialog-header-color;
      }
    }
  }
  .el-dialog__body {
    padding: 10px 20px;
    padding-bottom: 60px;
    flex: 1;
    overflow: auto;
  }
  .el-dialog__footer {
    border-top: 1px solid #dedede;
    padding: 10px 16px;
  }
  .avue--detail {
    .el-form--label-left {
      .el-form-item__label {
        justify-content: right;
      }
    }
    .el-form-item__label {
      padding: 4px 10px 4px 0;
      min-width: 120px;
    }
    .el-form-item__content {
      padding: 4px 10px;
      .el-input__inner,
      .el-textarea__inner,
      .is-disabled {
        cursor: auto!important;
      }
    }
    .el-input__wrapper {
      padding: 0;
    }
  }
}
.el-dialog.avue-dialog {
  max-width: 700px;
  &.avue--dialog-larger {
    max-width: 1000px;
  }
  padding: 0;
  .avue-dialog__footer {
    z-index: 3;
  }
}

.avue-crud {
  .avue-crud__search {
    .el-card__body {
      padding: 10px!important;
    }
  }
  .avue-crud__body {
    .el-card__body {
      padding: 10px!important;
    }
  }
  .avue-crud__pagination {
    padding: 0;
    // padding-bottom: 10px;
  }
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link{
  color: var(--el-color-primary) !important;
}

.prepend-input,
.append-input {
  .el-input-group__prepend {
    padding: 0;
    color: var(--el-color-primary);
    background-color: var(--el-color-primary-light-9);
    box-shadow: 1px 0 0 0 var(--el-color-primary-light-5) inset,0 1px 0 0 var(--el-color-primary-light-5) inset,0 -1px 0 0 var(--el-color-primary-light-5) inset;
    .el-button {
      margin: 0;
      height: 100%;
    }
  }
  .el-input-group__prepend:hover {
    background-color: var(--el-color-primary-light-8);
  }
  .el-input-group__append {
    padding: 0;
    color: var(--el-color-primary);
    background-color: var(--el-color-primary-light-9);
    box-shadow: 0 1px 0 0 var(--el-color-primary-light-5) inset,0 -1px 0 0 var(--el-color-primary-light-5) inset,-1px 0 0 0 var(--el-color-primary-light-5) inset;
    .el-button {
      margin: 0;
      height: 100%;
    }
  }
  .el-input-group__append:hover {
    background-color: var(--el-color-primary-light-8);
  }
}


.el-picker-panel {
  .el-picker-panel__footer {
    .el-picker-panel__link-btn {
      display: inline-flex!important;
      color: var(--el-color-primary);
    }
  }
}